import service from '@/utils/request'

//获取树菜单
export function useMenuNavApi(userName: string) {
	return service.get('/menu/findNavTree?userName=' + userName)
}

export const useAuthorityListApi = () => {
	return service.get('/data/menu/authority.json')
}

export const useMenuListApi = () => {
	return service.get('/data/menu/list.json')
}

export const useMenuApi = (id: Number) => {
	return service.get('/data/menu/1.json')
}
